import { createApp } from 'vue'
import Login from './views/LoginView.vue'
import fetchutil from "./assets/js/fetchutil";
import request from "./assets/js/request";
import store from './store'


//site css
import './assets/css/theme.css'

//element ui
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { ElMessage } from 'element-plus'

const app=createApp(Login)
// app.use(router)
app.use(store)
// app.use(fetchutil)
// app.use(request)
app.config.globalProperties.$fetchutil=fetchutil
app.config.globalProperties.$request=request
app.config.globalProperties.$ElMessage=ElMessage
app.use(ElementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')